package utils

import "github.com/garyburd/redigo/redis"

var Pool *redis.Pool

func init() {
	Pool = &redis.Pool{
		MaxIdle:     16,
		MaxActive:   0,
		IdleTimeout: 300,
		Dial: func() (redis.Conn, error) {
			setPasswd := redis.DialPassword("admin")
			return redis.Dial("tcp", "1.117.140.73:6379", setPasswd)
		},
	}
}
